$(document).ready(function(){
    $('#chat-sent').click(function(){
        var chatmess = $('#chat-mess').val();
        
        var groupid = $('#gid').attr('class');
        var datastring = 'mess='+chatmess+ "&gid="+groupid;
        if(chatmess.length>0){
            $.ajax({
                type: 'GET',
                url: "./SourceCode/chat_Process.php",
                data: datastring,
                success: function(server_response) {
                    $('#chat-center-cbox').html(server_response);
                }
            });
        }
    });
   // $.ajaxSetup({cache:false});
   // var gid = $('#gid').attr('class');
  //  setInterval(function(){$('#chat-center-cbox').load('./SourceCode/loadchat_Process.php?gid='+gid);},2000);
});